import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { CustomerGroupEntity } from '../../entity/group';
import { CustomerGroupService } from '../../service/group';

/**
 * 客户分组
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: CustomerGroupEntity,
  service: CustomerGroupService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name'],
  },
})
export class AdminCustomerGroupController extends BaseController {
  @Inject()
  customerGroupService: CustomerGroupService;
}
